home *** CD-ROM | disk | FTP | other *** search
/ NetNews Offline 2 / NetNews Offline Volume 2.iso / news / comp / sys / amiga / misc-part1 / 2693 < prev    next >
Encoding:
Internet Message Format  |  1996-08-05  |  2.4 KB

  1. Path: grafix.xs4all.nl!john.hendrikx
  2. Date: Sun, 21 Jan 96 18:27:36 GMT+1
  3. Newsgroups: comp.sys.amiga.misc
  4. Distribution: world
  5. Subject: Re: AFS speed
  6. MIME-Version: 1.0
  7. Content-Type: text/plain; charset=iso-8859-1
  8. Content-Transfer-Encoding: 8bit
  9. From: john.hendrikx@grafix.xs4all.nl (John Hendrikx)
  10. Message-ID: <john.hendrikx.482l@grafix.xs4all.nl>
  11. Organization: Grafix Attack BBS Holland
  12.  
  13. In a message of 17 Jan 96 Mark Marin wrote to All:
  14.  
  15.  MM> I have read that if you have a few big files - AFS wastes space  (sets
  16.  MM> up directory space even if it's not needed). OTOH if you have  MANY
  17.  MM> small files, you fill up the directory space. So even though  you have
  18.  MM> space on the drive, it's full as far as AFS is concerned.  Can anyone
  19.  MM> confirm or deny this?
  20.  
  21. Yes, that's true, with just a few big files on it AFS wastes about 2-10% of
  22. space (it depends on how big your partition is, it seems to waste less space on
  23. larger partitions (relatively that is)).
  24.  
  25. With lots of small files (newsgroup messages for example) AFS indeed can report
  26. the disk being full while it really isn't because it ran out of
  27. bookkeeping-space.  How fast this happens depends on things like how long the
  28. filenames are (and the size of the filenote, if you use it).
  29.  
  30. Most people will probably never run into this limit though.
  31.  
  32.  MM> For most things AFS saves space since it isn't forced to always use 
  33.  MM> multiples of 512 bytes/block. I guess two (or more?) files can share 
  34.  MM> one block. SOunds interesting - how well does it work?
  35.  
  36. AFS can store multiple File-Headers into the same block, depending on the
  37. length of the filename and the filenote this can range from about 7-30+ entries
  38. in one block (1024 bytes).  A File-Header is nothing more than a piece of info
  39. which tells you the size of the file, the name, the filenote and some other
  40. stuff (like protection bits, the date it was last modified and so on).
  41.  
  42. AFS does use 512 bytes/block though, although it doubles this into 1024
  43. bytes/block for storing the directory info (probably for speed-reasons or more
  44. likely a left-over from the old floppy days).  It doesn't (like some people
  45. claim) use pieces of blocks which aren't used to store say a small piece of a
  46. file's data.  It only does this for the file-headers (and dir-headers) as I
  47. explained above (and this is limited to file and dir-headers of the same
  48. directory only).
  49.  
  50. Grtz John
  51. -- Via Xenolink 1.985B3, XenolinkUUCP 1.1
  52.